import sun.reflect.generics.tree.Tree;

public class Test {
    public static void main(String[] args) {
        BinarySearchTree binarySearchTree = new BinarySearchTree();
        int[] array = {12,4,5,10,8};
        for(int x : array) {
            binarySearchTree.insert(x);
        }
        binarySearchTree.insert(3);

        System.out.println();
        binarySearchTree.removeNode(4);
    }

}
